﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using Htss.Platform.Data;
namespace DreamBox.DAL.Admin
{
    public class UserGroupCompetence
    {
        /// <summary>
        /// 删除用户组权限
        /// </summary>
        /// <param name="GID"></param>
        /// <returns></returns>
        public bool Delete(int GID)
        {
            DbAction action = new DbAction("dbox_UserGroupCompetence");
            action.SetFields("GID", GID, DbFieldType.Condition);
            return action.Delete();
        }
        /// <summary>
        /// 给用户组添加权限
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public bool Add(DreamBox.Model.Admin.UserGroupCompetence m)
        {
            DbAction action = new DbAction("dbox_UserGroupCompetence");
            action.SetFields("GID",m.GID);
            action.SetFields("ComID", m.ComID);
            return action.Insert();
        }
    }
}
